//
//  CCColor.h
//  CCFC_IPHONE
//
//  Created by  xuchen(陈旭)， xichen(陈曦)， qq：511272827 on 10-10-28.
//  Copyright 2010 cc_team. All rights reserved.
//
#ifndef	CC_COLOR
#define	CC_COLOR

#include "CCAll.h"

#define	RGB_MAX_VALUE	255.0

#ifdef	OBJC_MACRO
#define RGBA(r, g, b, a) [UIColor colorWithRed:(r)/RGB_MAX_VALUE	\
										 green:(g)/RGB_MAX_VALUE	\
										  blue:(b)/RGB_MAX_VALUE	\
										 alpha:(a)]

#define	COLOR_RED		[UIColor colorWithRed:1.0 green:0 blue:0 alpha:1]
#define	COLOR_GREEN		[UIColor colorWithRed:0 green:1.0 blue:0 alpha:1]
#define	COLOR_BLUE		[UIColor colorWithRed:0 green:0 blue:1.0 alpha:1]

#define	COLOR_BLACK		[UIColor colorWithRed:0 green:0 blue:0 alpha:1]
#define	COLOR_WHITE		[UIColor colorWithRed:1.0 green:1.0 blue:1.0 alpha:1]

// 透明颜色
#define	COLOR_CLEAR		[UIColor clearColor]

#endif	//OBJC_MACRO
#endif	//CC_COLOR	
